﻿using CarterWechatServer.DataEntity.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarterWechatServer.DataEntity
{
    public class EFContext:DbContext
    {
        public EFContext() : base("DefaultConnection")
        {

        }

        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<UserEntity> Users { get; set; }

        /// <summary>
        /// 第三方登录
        /// </summary>
        public DbSet<UserExtraLoginEntity> UserExtraLogins { get; set; }

        /// <summary>
        /// 菜品
        /// </summary>
        public DbSet<DishEntity> Dishes { get; set; }

        /// <summary>
        /// 菜品分类
        /// </summary>
        public DbSet<DishCategoryEntity> DishCategories { get; set; }

        /// <summary>
        /// 订单
        /// </summary>
        public DbSet<OrderEntity> Orders { get; set; }

        /// <summary>
        /// 订单详情
        /// </summary>
        public DbSet<OrderInfoEntity> OrderInfos { get; set; }
    }
}
